/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chatclient;

/**
 *
 * @author NAMQUYUIT
 */
public interface IOnGroupListener {
    // Raise when has a user requires a new group
    public void onCreateGroupSuccess(String groupId, String[] lstIdentities);
    
    // Raise when adding a user to the group
    public void onAddNewUserToGroup(String groupId, String sender, String username, String[] lstOldIdentities);
    
    // Raise when has a user leaves from group
    public void onUserLeaveFromGroup(String groupId, String username);
    
    // Raise when has a user leaves from group
    public void onUserRemoveFromGroup(String groupId, String sender, String username);
    
    // Raise when has a new message to group
    public void onGroupNewMessage(String sender, String groupId, String message);
}
